package com.bls.cate_s.model;

import java.util.List;

public class Root<T> {
    private boolean resultStatus;      //返回状态
    private int resultCode;             //返回码
    private T resultData;                //返回数据
    private List<T> resultListData;     //返回数据列表
    private String resultDes;            //返回结果描述
    private int CountPage;               //总页数
    private int CurrentPage;             //当前页数

    public Root(boolean resultStatus, int resultCode, T resultData, List<T> resultListData, String resultDes, int countPage, int currentPage) {
        this.resultStatus = resultStatus;
        this.resultCode = resultCode;
        this.resultData = resultData;
        this.resultListData = resultListData;
        this.resultDes = resultDes;
        CountPage = countPage;
        CurrentPage = currentPage;
    }

    public boolean isResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(boolean resultStatus) {
        this.resultStatus = resultStatus;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public T getResultData() {
        return resultData;
    }

    public void setResultData(T resultData) {
        this.resultData = resultData;
    }

    public List<T> getResultListData() {
        return resultListData;
    }

    public void setResultListData(List<T> resultListData) {
        this.resultListData = resultListData;
    }

    public String getResultDes() {
        return resultDes;
    }

    public void setResultDes(String resultDes) {
        this.resultDes = resultDes;
    }

    public int getCountPage() {
        return CountPage;
    }

    public void setCountPage(int countPage) {
        CountPage = countPage;
    }

    public int getCurrentPage() {
        return CurrentPage;
    }

    public void setCurrentPage(int currentPage) {
        CurrentPage = currentPage;
    }
}
